package com.job.client.jobs;

import com.client.job.core.annos.MJobAnnotation;
import com.client.job.core.model.MJob;
import com.client.job.runLogs.RunLogsFactory;
import org.springframework.stereotype.Component;

@Component
public class TestJob2 {

	public RunLogsFactory logs = RunLogsFactory.buildFactory();
	

	@MJobAnnotation(jobName = "test4444" ,jobCode = "test444" ,cron = "0/20 * * * * ? ",zone = 1,keyName = "creatime")
	public void testname(MJob jd) throws Exception {
		logs.job(jd);
		logs.logs("test444的测试日志1");
		logs.logs("test444的测试日志2");
		logs.logs("test444的测试日志3");
		logs.logs("test444的测试日志4");
		logs.logs("test444的测试日志5");
		logs.logs("test444的测试日志6");
		logs.logs("test444的测试日志7");
		logs.send();
	}

	@MJobAnnotation(jobName = "test" ,jobCode = "test" ,cron = "0/20 * * * * ? ",zone = 1,keyName = "creatime")
	public void testname2(MJob jd) throws Exception {
//		logs.job(jd);
//		logs.logs("test的测试日志1");
//		logs.logs("test的测试日志2");
//		logs.logs("test的测试日志3");
//		logs.send();
	}

	public void testname3(MJob jd) throws Exception {
		System.out.println("假装是个定时任务");
	}


}
